import { Module } from '@nestjs/common'
import { MenuService } from './menu.service'
import { OperationModule } from '../operation/operation.module'
import { MenuController } from './menu.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import {
  Menu,
  MenuOperation,
  RoleMenu,
  MenuPermission
} from './entities/menu.entity'

import { LoggerModule } from 'src/logger/logger.module'
@Module({
  imports: [
    LoggerModule,
    OperationModule,
    TypeOrmModule.forFeature([Menu, RoleMenu, MenuOperation, MenuPermission])
  ],
  controllers: [MenuController],
  providers: [MenuService],
  exports: [MenuService]
})
export class MenuModule {}
